-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLUE-209 Db perf #68
BLUE-209 Db perf #68
Conversation
src/Data/Collector.ts
Outdated
`The account verification failed from robustQuery nodes ${receipt.tx.txId} , ${receipt.cycle}, ${receipt.tx.timestamp}` | ||
) | ||
continue | ||
if (config.verifyAccountData) { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
src/Data/Collector.ts
Outdated
`The receipt validation failed from robustQuery nodes ${receipt.tx.txId} , ${receipt.cycle}, ${receipt.tx.timestamp}` | ||
) | ||
continue | ||
if (config.verifyReceiptData) { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
src/Data/Collector.ts
Outdated
const existingReceipt = await Receipt.queryReceiptByReceiptId(txId) | ||
const failedReasons = [] | ||
const nestedCounterMessages = [] | ||
if (config.verifyAppReceiptData) { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
src/Data/Collector.ts
Outdated
return { success: false, failedReasons, nestedCounterMessages } | ||
} | ||
} | ||
if (config.verifyAccountData) { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
src/Data/Collector.ts
Outdated
return { success: false, failedReasons, nestedCounterMessages } | ||
} | ||
} | ||
if (config.verifyReceiptSignaturesSeparately) { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check High
action
user-provided value
} | ||
|
||
const createDB = async (dbPath: string, dbName: string): Promise<Database> => { | ||
console.log('dbName', dbName, 'dbPath', dbPath) |
Check warning
Code scanning / CodeQL
Log injection Medium
user-provided value
worker.kill() | ||
} | ||
if (receiptLoadTraker < config.receiptLoadTrakerLimit) { | ||
console.log(`Receipt load is below the limit: ${receiptLoadTraker}/${config.receiptLoadTrakerLimit}`) |
Check warning
Code scanning / CodeQL
Log injection Medium
user-provided value
}, based on ${receiptLoadTraker} receipts received.` | ||
) | ||
receiptLoadTraker = 0 // Reset the count | ||
}, config.receiptLoadTrakerInterval) |
Check failure
Code scanning / CodeQL
Resource exhaustion High
user-provided value
src/worker-process/index.ts
Outdated
process.send({ type: 'child_ready' }) | ||
setInterval(() => { | ||
console.log( | ||
`lastActivityCheckTimeout: ${config.lastActivityCheckTimeout}, lastActivityCheckInterval: ${config.lastActivityCheckInterval}` |
Check warning
Code scanning / CodeQL
Log injection Medium
user-provided value
src/worker-process/index.ts
Outdated
console.log(`Worker ${process.pid} is idle for more than 1 minute`) | ||
process.send({ type: 'child_close' }) | ||
} | ||
}, config.lastActivityCheckInterval) |
Check failure
Code scanning / CodeQL
Resource exhaustion High
user-provided value
|
||
function createDirectories(pathname: string): void { | ||
const __dirname = path.resolve() | ||
pathname = pathname.replace(/^\.*\/|\/?[^/]+\.[a-z]+|\/$/g, '') // Remove leading directory markers, and remove ending /file-name.extension |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High
regular expression
a user-provided value
… debug logs for account query
No description provided.